<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meat name="robots" content="index,nofollow" />
		<title>
			模板配置
		</title>
		<link rel="stylesheet" href="*ADMIN*/layui/css/layui.css">
		<script src="*ADMIN*/js/jquery-3.4.1.min.js">
		</script>
		<script src="*ADMIN*/layui/layui.js">
		</script>
	</head>
 <style type="text/css">
.layui-form-label {
    width: 150px;
}
 </style>
	<body>
		<div class="layui-card">
			<div class="layui-card-body">
				<form class="layui-form" action="">
					<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
						<ul class="layui-tab-title">
							<li class="layui-this">
								基本配置
							</li>
						</ul>
						<div class="layui-tab-content">
							<div class="layui-tab-item layui-show">
 							    <div class="layui-form-item layui-form-text">
    							     <label class="layui-form-label">热门标签</label>
    							     <div class="layui-input-block">
      							     <textarea name="zong1" placeholder="请输入内容" class="layui-textarea">{:cmspc('zong1')}</textarea>
     							    </div>
   							    </div>
							</div>
						</div>
					</div>
					<div class="layui-form-item">
						<div class="layui-input-block">
							<button class="layui-btn" lay-submit lay-filter="cms">
								立即提交
							</button>
						</div>
					</div>
				</form>
			</div>
		</div>
<script>
layui.use('form',function(){
  var form = layui.form
  ,jq = layui.jquery;
  //提交
  form.on('submit(cms)', function(data){
    loading = layer.load(2, {
      shade: [0.2,'#000']
    });
    var param = data.field;
    jq.post('{:url("index/index/cmspc")}',param,function(data){
      if(data.code == 200){
        layer.close(loading);
        layer.msg(data.msg, {icon: 1, time: 1000}, function(){
        });
      }else{
        layer.close(loading);
        layer.msg(data.msg, {icon: 2, anim: 6, time: 1000});
      }
    });
    return false;
  });
});
</script>
<script>
layui.use('colorpicker', function(){
  var $ = layui.$
  ,colorpicker = layui.colorpicker;
  //选择颜色
  colorpicker.render({
    elem: '#test-form1'
    ,color: '{:cmspc('ys1')}'
    ,done: function(color){
      $('#test-form-input1').val(color);
    }
  });
  
  colorpicker.render({
    elem: '#test-form2'
    ,color: '{:cmspc('ys2')}'
    ,done: function(color){
      $('#test-form-input2').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form3'
    ,color: '{:cmspc('ys3')}'
    ,done: function(color){
      $('#test-form-input3').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form4'
    ,color: '{:cmspc('ys4')}'
    ,done: function(color){
      $('#test-form-input4').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form5'
    ,color: '{:cmspc('ys5')}'
    ,done: function(color){
      $('#test-form-input5').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form6'
    ,color: '{:cmspc('ys6')}'
    ,done: function(color){
      $('#test-form-input6').val(color);
    }
  });
  colorpicker.render({
    elem: '#test-form7'
    ,color: '{:cmspc('ys7')}'
    ,done: function(color){
      $('#test-form-input7').val(color);
    }
  });
  
  
});
</script>
	</body>
</html>